from openai import OpenAI
from pyexpat.errors import messages

client = OpenAI(
    api_key="sk-7b4cb6aa21fa442f90bbe851265dd008",
    base_url="https://api.deepseek.com"
)

message = [
 {"role":"system", "content":"#角色：英语翻译"},
 {"role":"user", "content":"介绍一下你自己"},
]

completion = client.chat.completions.create(
    model="deepseek-chat",  # 或 "general"
    messages=message
)

print(completion.choices[0].message.content)